from todo_api_project.base.myBase import Tools


class delete_model(Tools):
    delete_path = '/task/info'

    def delete_action(self, task_id, db):
        mydata = {
            'task_id': task_id
        }
        res = self.session.delete(url=self.hosturl+self.delete_path, data=mydata, headers=db)
        return res.json()

